import {SET_FILTER} from "./actionTypes";
import {FilterTypes} from "../filterTypes";

export default (state = FilterTypes.All, action) => {
    switch (action.type) {
        case SET_FILTER:
            return action.filter;
        default:
            return state;
    }
}